var baseui = {
      
      createTable:function() {
        alert('createTable');
      },
      
      createWindow:function(options) {
    	  
    	  if($('#baseWindow').length <= 0) {
    		  $('body').append('<div id="baseWindow"></div>');
    	  }
    	  
    	  if ($('#baseWindow').length <= 0) {
    		  return null;
    	  }
    	  
    	  $('#baseWindow').window({
				title: options.title ? options.title : '',
				width: options.width ? options.width : 600,
				height: options.height ? options.height : 400,
				content: '<iframe scrolling="auto" frameborder="0"  src="' + options.url + '" style="width:100%;height:100%;"></iframe>',
				modal: options.modal === false ? false : true,
				closed: options.closed ? true : false,
				closable: options.closable === false ? false : true,
				minimizable: options.minable === false ? false : true,
				maximizable: options.maxable === false ? false : true,                        
				collapsible: options.collapsible === false ? false : true,
				resizable: options.resizable === false ? false : true,
				draggable: options.draggable === false ? false : true,
				inline: options.inline ? true : false,
				loadingMessage:options.message ? options.message : '加载中,请稍等...',
				shadow: true,
				cache: false
		  });
    	  
    	  return $('#baseWindow');
      },
      createTree:function() {
    	  alert('createTree');
      },
      closeWindow:function() {
    	 if ($('#baseWindow').length <= 0) {
    	    return;
    	 } 
    	 $('#baseWindow').window('close');
    	 $('#baseWindow').window('destroy');
      }
};

$(function () {
   // $('body').append('<div id="myWindow" class="easyui-dialog" closed="true"></div>');
});